using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
using KPIS.GERP.Models.Class;

namespace KPIS.GERP.Models.ICM
{
	[DataContract, Table("IcmMasUnit")]
    public class MasUnit
    {
        public MasUnit()
        {
            //this.MasResourceItems = new HashSet<MasResourceItem>();
        }
    

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "UnitId", ResourceType = typeof(Resources.MasUnitResource))]
        public int UnitId { get; set; }

		[DataMember, Display(Name = "Code", ResourceType = typeof(Resources.MasUnitResource))]
        public string Code { get; set; }

        [CustomRequired]
		[DataMember, Display(Name = "Name", ResourceType = typeof(Resources.MasUnitResource))]
        public string Name { get; set; }

        [DataMember, Display(Name = "Sign", ResourceType = typeof(Resources.MasUnitResource))]
        public string Sign { get; set; }

		[DataMember, Display(Name = "Descr", ResourceType = typeof(Resources.MasUnitResource))]
        public string Descr { get; set; }

	    [DataMember, Display(Name = "RecordStatus", ResourceType = typeof (Resources.MasUnitResource))]
	    public string RecordStatus { get; set; }

	    [DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.MasUnitResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.MasUnitResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.MasUnitResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.MasUnitResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }


        //[DataMember]
        //public virtual ICollection<MasResourceItem> MasResourceItems { get; set; }

    }
}